From ec7bb10f8e8e4a8c36573e96d53cdab397f633f1 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Sun, 2 Oct 2005 18:21:01 +0100 Subject: [PATCH] Call refresh in the domain_lookup and domain_lookup_by_name methods. This should reduce the incidence of stale domain information being used by xend, but is only a stop-gap. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 110d531070..1d5ebce231 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -271,9 +271,11 @@ class XendDomain: def domain_lookup(self, id): + self.refresh() return self.domains.get(id) def domain_lookup_by_name(self, name): + self.refresh() dominfo = self.domains.get_by_name(name) if not dominfo: try: -- 2.30.2